package com.libary.dao.Impl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import com.libary.dao.BookDao;
import com.libary.dto.Book;

@Repository("BookDao")
public class BookDaoImpl extends SqlMapClientDaoSupport implements BookDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<Book> getBooks(Book book) {
		return (List<Book>)getSqlMapClientTemplate().queryForList("Book.getBooks",book);
	}

}